<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="file:///tmp/rsv/" />
<title>jquery_example3</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">jquery_example3</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>jquery/example_3_all_validation_rules.html</td>
	<td></td>
</tr>
<!--no input should cause required fields alert.-->
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter an integer*</td>
	<td></td>
</tr>
<!--1. for any integer(required)-->
<!--case1.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=any_integer</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*This field may only contain digits*</td>
	<td></td>
</tr>
<!--case1.2 a number, should pass-->
<tr>
	<td>type</td>
	<td>name=any_integer</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--2. for 1-100. -->
<!--case2.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*This field may only contain digits*</td>
	<td></td>
</tr>
<!--case2.2 33 in (1..100), should pass-->
<tr>
	<td>type</td>
	<td>name=number_range</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--case2.3 133 > 100, shoud alert-->
<tr>
	<td>type</td>
	<td>name=number_range</td>
	<td>133</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number between 1 and 100*</td>
	<td></td>
</tr>
<!--3. for > 100-->
<!--case3.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number greater than 100*</td>
	<td></td>
</tr>
<!--case3.2 133 > 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than</td>
	<td>133</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--case3.3 33 < 100, shoud alert-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number greater than 100*</td>
	<td></td>
</tr>
<!--4. for >= 100-->
<!--case4.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than_or_equal</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number greater than 100*</td>
	<td></td>
</tr>
<!--case4.2 133 > 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than_or_equal</td>
	<td>133</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--case4.3 33 < 100, shoud alert-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than_or_equal</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number greater than 100*</td>
	<td></td>
</tr>
<!--case4.4 100 = 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_greater_than_or_equal</td>
	<td>100</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--5. for < 100-->
<!--case5.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number less than 100*</td>
	<td></td>
</tr>
<!--case5.2 33 < 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--case5.3 333 > 100, shoud alert-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than</td>
	<td>333</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number less than 100*</td>
	<td></td>
</tr>
<!--case5.4 100 = 100, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than</td>
	<td>100</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number less than 100*</td>
	<td></td>
</tr>
<!--6. for <= 100-->
<!--case6.1 not a number, should alert-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than_or_equal</td>
	<td>this_is_not_integer</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number less than or equal to 100*</td>
	<td></td>
</tr>
<!--case6.2 33 < 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than_or_equal</td>
	<td>33</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
<!--case6.3 333 > 100, shoud alert-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than_or_equal</td>
	<td>333</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:*Please enter a number less than 100*</td>
	<td></td>
</tr>
<!--case5.4 100 = 100, should pass-->
<tr>
	<td>type</td>
	<td>name=number_range_less_than_or_equal</td>
	<td>100</td>
</tr>
<tr>
	<td>click</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>verifyAlert</td>
	<td>glob:**</td>
	<td>HACK to ignore this alert</td>
</tr>
</tbody></table>
</body>
</html>
